import Vue from 'vue'
import Router from 'vue-router'
import login from '@/views/login.vue'
import HomePage from '@/views/HomePage'
import DoctorManagement from '@/views/ren/DoctorManagement'
import AppointmentNotice from '@/views/ren/AppointmentNotice'
import DepartmentManagement from '@/views/ren/DepartmentManagement'
import Healthy from '@/views/ren/Healthy'
import HospitalNavigation from '@/views/ren/HospitalNavigation'
import HospitalProfile from '@/views/ren/HospitalProfile'
import PhysicalExamination from '@/views/ren/PhysicalExamination'
import AddDoctor from '@/views/ren/AddDoctor'
import UpdDoctor from '@/views/ren/UpdDoctor'
import AddDepartment from '@/views/ren/AddDepartment'
import UpdDepartment from '@/views/ren/UpdDepartment'
import AddHealth from '@/views/ren/AddHealth'
import UpdHealthy from '@/views/ren/UpdHealthy'
import AddHospital from '@/views/ren/AddHospital'
import UpdHospital from '@/views/ren/UpdHospital'
import taocan from '@/views/ren/taocan'
import xiangmu from '@/views/ren/xiangmu'
import leixing from '@/views/ren/leixing'
import MealUpd from '@/views/ren/MealUpd'
import MealAdd from '@/views/ren/MealAdd'

import Administrator from '@/views/guanli/Administrator'
import ChangePassword from '@/views/guanli/ChangePassword'
import Message from '@/views/guanli/Message'
import Nickname from '@/views/guanli/Nickname'
import RoleManagement from '@/views/guanli/RoleManagement'

Vue.use(Router)

const routes = [
  {
    path: '/login',
    name: 'login',
    component: login
  },

  {
    path: '/HomePage',
    name: 'HomePage',
    component: HomePage,
    children:[
      {
        path:'/home',
        name:'home',
        component:()=>import( '../views/home.vue'),
      },
      {
        path:'/guahao',
        name:'guahao',
        component:()=>import( '../views/lsx/yuyue/guahao.vue'),
      },
      {
        path:'/guahaoxiangqing',
        name:'guahaoxiangqing',
        component:()=>import( '../views/lsx/yuyue/guahaoxiangqing.vue'),
      },
      {
        path:'/hesuan',
        name:'hesuan',
        component:()=>import( '../views/lsx/yuyue/hesuan.vue'),
      },
      {
        path:'/hesuanxiangqing',
        name:'hesuanxiangqing',
        component:()=>import( '../views/lsx/yuyue/hesuanxiangqing.vue'),
      },

      {
        path:'/tijian',
        name:'tijian',
        component:()=>import( '../views/lsx/yuyue/tijian.vue'),
      },
      {
        path:'/tijianxiangqing',
        name:'tijianxiangqing',
        component:()=>import( '../views/lsx/yuyue/tijianxiangqing.vue'),
      },
      {
        path:'/baogaoxiangqing',
        name:'baogaoxiangqing',
        component:()=>import( '../views/lsx/yuyue/baogaoxiangqing.vue'),
      },
      {
        path:'/addbaogaoxiangqing',
        name:'addbaogaoxiangqing',
        component:()=>import( '../views/lsx/yuyue/addbaogaoxiangqing.vue'),
      },

      {
        path:'/menzhenxiaofei',
        name:'menzhenxiaofei',
        component:()=>import( '../views/lsx/feiyong/menzhen/menzhenxiaofei.vue'),
      },
      {
        path:'/menzhenchongzhi',
        name:'menzhenchongzhi',
        component:()=>import( '../views/lsx/feiyong/menzhen/menzhenchongzhi.vue'),
      },
      {
        path:'/consumptiondingdan',
        name:'consumptiondingdan',
        component:()=>import( '../views/lsx/feiyong/consumptiondingdan.vue'),
      },
      {
        path:'/zhuyuanxiaofei',
        name:'zhuyuanxiaofei',
        component:()=>import( '../views/lsx/feiyong/zhuyuan/zhuyuanxiaofei.vue'),
      },
      {
        path:'/zhuyuanchonghzi',
        name:'zhuyuanchonghzi',
        component:()=>import( '../views/lsx/feiyong/zhuyuan/zhuyuanchonghzi.vue'),
      },
      {
        path:'/paydingdan',
        name:'paydingdan',
        component:()=>import( '../views/lsx/feiyong/paydingdan.vue'),
      },
      {
        path:'/tuikuanjilu',
        name:'tuikuanjilu',
        component:()=>import( '../views/lsx/feiyong/tuikuan/tuikuanjilu.vue'),
      },

      {
        path:'/consumptiondingdans',
        name:'consumptiondingdans',
        component:()=>import( '../views/lsx/feiyong/consumptiondingdans.vue'),
      },




      {path:'/DoctorManagement',component:DoctorManagement},
      {path:'/AddDoctor',component:AddDoctor},
      {path:'/UpdDoctor',component:UpdDoctor},
      {path:'/AppointmentNotice',component:AppointmentNotice},
      {path:'/DepartmentManagement',component:DepartmentManagement},
      {path:'/Healthy',component:Healthy},
      {path:'/HospitalNavigation',component:HospitalNavigation},
      {path:'/HospitalProfile',component:HospitalProfile},
      {path:'/PhysicalExamination',component:PhysicalExamination},
      {path:'/AddDepartment',component:AddDepartment},
      {path:'/UpdDepartment',component:UpdDepartment},
      {path:'/AddHealth',component:AddHealth},
      {path:'/UpdHealthy',component:UpdHealthy},
      {path:'/AddHospital',component:AddHospital},
      {path:'/UpdHospital',component:UpdHospital},
      {path:'/taocan',component:taocan},
      {path:'/xiangmu',component:xiangmu},
      {path:'/leixing',component:leixing},
      {path:'/MealAdd',component:MealAdd},
      {path:'/MealUpd',component:MealUpd},

      {path:'/Administrator',component:Administrator},
      {path:'/ChangePassword',component:ChangePassword},
      {path:'/Message',component:Message},
      {path:'/Nickname',component:Nickname},
      {path:'/RoleManagement',component:RoleManagement},
    ]
  }
]

const router = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
